<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8 no-js"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9 no-js"> <![endif]-->
<!--[if !IE]><!-->
<html lang="en" class="no-js">
<!--<![endif]-->
<!-- BEGIN HEAD -->
<head>
<meta charset="utf-8" />
<title>商品管理 - 编辑关联</title>
<?php include($this->c['_homes']['_viewsHome'].'/_global/_head.php');?>
</head>
<!-- BEGIN BODY -->
<body class="page-header-fixed page-sidebar-fixed">
<!-- BEGIN HEADER -->
<?php include($this->c['_homes']['_viewsHome'].'/_global/head.php');?>
<!-- END HEADER -->
<div class="clearfix"></div>
<!-- BEGIN CONTAINER -->
<div class="page-container" > 
  <!-- BEGIN HORIZONTAL MENU PAGE SIDEBAR1 -->
  <?php include($this->c['_homes']['_viewsHome'].'/_global/menu.php');?>
  <!-- END BEGIN HORIZONTAL MENU PAGE SIDEBAR --> 
  <!-- BEGIN PAGE -->
  <div class="page-content"> 
    <!-- BEGIN PAGE HEADER-->
    <div class="row">
      <div class="col-md-12"> 
        <!-- BEGIN PAGE TITLE & BREADCRUMB-->
        <h3 class="page-title"> 编辑关联 </h3>
        <ul class="page-breadcrumb breadcrumb">
          <li> <i class="icon-home"></i> <a href="/manage">后台</a> <i class="icon-angle-right"></i> </li>
          <li> 商品管理 <i class="icon-angle-right"></i> </li>
          <li> <a href="/channel/relevanceList">关联列表</a> <i class="icon-angle-right"></i> </li>
          <li>编辑关联</li>
        </ul>
        <!-- END PAGE TITLE & BREADCRUMB--> 
      </div>
    </div>
    <!-- END PAGE HEADER--> 
    <!-- BEGIN PAGE CONTENT-->
    
    <div class="row">
      <div class="col-md-9"> 
        <!-- BEGIN SAMPLE FORM PORTLET-->
        <div class="portlet box blue">
          <div class="portlet-title">
            <div class="caption"> <i class="icon-reorder"></i>关联资料 </div>
            <div class="tools"> <a href="" class="collapse"></a> </div>
          </div>
          <div class="portlet-body form">
            <form method="post" class="form-horizontal" action="relevancel_edit" id="forms" onsubmit="return sub();">
              <input type="hidden" name="act" value="rele_edit" />
              <input type="hidden" name="ref" value="<?=$_SERVER['HTTP_REFERER'];?>">
              <input type="hidden" name="id"  value="<?=$this->data['id'];?>" />
              <div class="form-body">
       
                <div class="form-group">
                  <label class="col-md-3 control-label">标题</label>
                  <div class="col-md-6">
                    <input name="title"  class="form-control" value="<?=$this->data['title'] ?>" type="text" placeholder="请输入标题">
                    <span class="help-block"></span>
                  </div>
                </div>
                <div class="form-group">
                  <label class="col-md-3 control-label">选项名称</label>
                  <div class="col-md-6">
                    <input name="option_name" class="form-control" value="<?=$this->data['option_name'] ?>" type="text" placeholder="例如：色号">                   
                  </div>
                </div>   
                <div class="form-group">
                  <label class="col-md-3 control-label">状态</label>
                  <div class="col-md-9">
                    <div class="radio-list">
                      <label class="radio-inline">
                      <div id="uniform-optionsRadios4" class="radio"><span class="">
                        <input name="status" id="optionsRadios4" value="1"<? if($this->data['status']==1) echo ' checked';?> type="radio">
                        </span></div>
                      <span class="label label-success">正常</span>
                      </label>
                      <label class="radio-inline">
                      <div id="uniform-optionsRadios5" class="radio"><span>
                        <input name="status" id="optionsRadios5" value="0"<? if($this->data['status']==0) echo ' checked';?> type="radio">
                        </span></div>
                      <span class="label label-danger">禁用</span>
                      </label>
                    </div>
                  </div>
                </div>                
              </div>
              <div class="form-actions fluid">
                <div class="col-md-offset-3 col-md-9">
                  <button type="submit" class="btn blue" onclick="sub()">提交</button>
                  <button type="button" class="btn default" onClick="history.back(1);">取消</button>
                </div>
              </div>
            </form>
          </div>
        </div>
        <!-- END SAMPLE FORM PORTLET--> 
        
      </div>
    </div>
    <!-- END PAGE CONTENT--> 
  </div>
  <!-- END PAGE --> 
</div>
<!-- END CONTAINER -->

<?php include($this->c['_homes']['_viewsHome'].'/_global/_footer.php');?>


<script>
jQuery(document).ready(function() {    
   App.init();
});
function sub(){


	if($('#title').val() == ''){
		swal("标题不能为空"); 
		return false;
	}

}
</script>

<!-- END JAVASCRIPTS -->
</body>
<!-- END BODY -->
</html>